package com.zh.modules.app.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zh.generator.core.BaseDO;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 余额记录
 * </p>
 *
 * @author zh
 * @since 2024-03-22
 */
@Getter
@Setter
@TableName("balance_his")
@ApiModel(value = "BalanceHisDO对象", description = "余额记录")
public class BalanceHisDO extends BaseDO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("订单号")
    private String orderNo;

    @ApiModelProperty("金额（分）")
    private Integer amount;

    @ApiModelProperty("变动前余额（分）")
    private Integer preAmount;

    @ApiModelProperty("变动后余额（分）")
    private Integer postAmount;

    @ApiModelProperty("类型 0：充值 1：消费")
    private Integer type;


}
